package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.CategoryRatioMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.CategoryRatio;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.CategoryRatioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryRatioServiceImpl implements CategoryRatioService {
    @Autowired
    private CategoryRatioMapper categoryRatioMapper;

    @Override
    public List<CategoryRatio> selectAll() {
        return categoryRatioMapper.selectAll();
    }

    @Override
    public int insert(CategoryRatio categoryRatio) {
        return categoryRatioMapper.insert(categoryRatio);
    }
}
